package org.edu.modules.sbzc.floor.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-楼层表
 */
@TableName("ve_sbzc_jzw_floor")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="楼层表对象", description="ve_sbzc_jzw_floor")
public class VeSbzcJzwFloor extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "建筑物id")
    private Integer jzwId;

    @TableField
    @ApiModelProperty(value = "地上楼层直接用阿拉伯数字表示，地下楼层在阿拉伯数字前加“B”")
    @Length(max = 6)
    private String code;

    @TableField
    @ApiModelProperty(value = "房间数量")
    private Integer roomCount;
}
